<html>
<head>
<script>
window.onload = function() {
  document.getElementById("input").focus();
}
</script>
</head>
<body style="background-color: blue">
<input id="input" type="text" style="border-width: 6px;" />
</body>
</head>
</html>